<admintpl file="header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li ><a href="{:U('Admin/NewsCarousel/index')}">轮播图列表</a></li>
			<li class="active"><a href="{:U('Admin/NewsCarousel/edit')}">修改轮播图</a></li>
		</ul>
		<form method="post" class="form-horizontal js-ajax-form" action="{:U('Admin/NewsCarousel/edit_post')}">
				<div class="control-group">
					<label class="span1 control-label" style="width: 80px;">标题：</label>
					<div class="span3">
						<input type="text" name="t" value="{$data.t}">
					</div>
				</div>
				<div class="control-group">
					<label class="span1 control-label" style="width: 80px;">类型：</label>
					<div class="span3" style="padding-top:3px;">
						<label class="span1 radio" style="width: 60px;">
						  <input type="radio" checked name="bT" value="1" <if condition="$data.bT eq 1">checked</if>>
						  普通新闻
						</label>
						<label class="span1 radio" style="width: 60px;">
						  <input type="radio" name="bT" value="2" <if condition="$data['bT'] eq 2">checked</if>>
						  图片新闻
						</label>
						<label class="span1 radio" style="width: 60px;">
						  <input type="radio" name="bT" value="3" <if condition="$data.bT eq 3">checked</if>>
						  专题新闻
						</label>
						<label class="span1 radio" style="width: 60px;">
						  <input type="radio" name="bT" value="4" <if condition="$data.bT eq 4">checked</if>>
						  视频新闻
						</label>
						<label class="span1 radio" style="width: 60px;">
						  <input type="radio" name="bT" value="5" <if condition="$data.bT eq 5">checked</if>>
						  直播新闻
						</label>
						<label class="span1 radio" style="width: 60px;">
						  <input type="radio" name="bT" value="6" <if condition="$data.bT eq 6">checked</if>>
						  推广
						</label>
					</div>
				</div>
				<div class="control-group">
					<label class="span1 control-label" style="width: 80px;">图片：</label>
					<div style="padding-left: 130px;text-align: left;">
						<input type="hidden" name="iU" id="imageUrl" value="{$data['iU']}">
						<a href="javascript:void(0);" onclick="flashupload('thumb_images', '附件上传','imageUrl',thumb_images,'1,jpg|jpeg|gif|png|bmp,1,,,1','','','');return false;">
							<img src="{$data['iU']}" id="imageUrl_preview" width="135" style="cursor: hand">
						</a>
					</div>
				</div>
				<div class="control-group">
					<label class="span1 control-label" style="width: 80px;">新闻类别：</label>
					<div class="span7">
						<foreach name="newsClass" item="vo">
						<label class="span1 radio" style="width: 60px;">
						  <input type="radio" name="cI" value="{$vo['cId']}" <if condition="$vo['cId'] eq $data['cI']">checked</if>>
						  {$vo.cN}
						</label>
						</foreach>
					</div>
				</div>
				<div class="control-group">
					<label class="span1 control-label" style="width: 80px;">简介：</label>
					<div class="span7">
						<textarea name="sm" rows="3" style="width: 546px;">{$data['sm']}</textarea>
					</div>
				</div>
				<div class="control-group">
					<label class="span1 control-label" style="width: 80px;">url：</label>
					<div class="span7">
						<input type="text" name="lU" value="{$data['lU']}">
					</div>
				</div>
				<div class="control-group">
					<label class="span1 control-label" style="width: 80px;">排序</label>
					<div class="span7">
						<input type="text" name="sI" value="{$data['sI']}">
					</div>
				</div>
				<input type="hidden" name="bId" value="{$data['bId']}">
			<div class="form-actions" style="padding-left:260px;">
				<button type="submit" class="btn btn-primary js-ajax-submit">保存</button>
				&nbsp;&nbsp;<a class="btn" href="{:U('Admin/NewsCarousel/index')}">{:L('BACK')}</a>
			</div>
		</form>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
	<script type="text/javascript" src="/public/js/content_addtop.js"></script>
	
</body>
</html>